﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using JoinParty.BLL;
using ZHDJ.WebPage;

namespace JoinParty.Template
{
    public partial class TJoinStep31 : TemplatePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.LoadData();
            }
        }


        protected void Button1_Click(object sender, EventArgs e)
        {
            WordBusiness.Export(this, palWord, "预备党员教育考察.doc");
        }

        public void LoadData()
        {
            var rep = DB.PartyJoinReviewOptions.Where(r => r.AppllicationID == PartyJoinApplycation.AppllicationID && r.StepID == "JoinStep31").FirstOrDefault();
            if (rep == null)
            {
                return;
            }
            this.litCultureMeasures.Text = rep.CultureMeasures;
            this.Literal1.Text = rep.OpinionOne;
            this.Literal2.Text = rep.OpinionTwo;
            this.litBranchOpinion.Text = rep.BranchOpinion;
            this.litRemark.Text = rep.Remark;
        }
    }
}